﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Module.Manhour.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="Stylesheet" href="Admin/Module/Manhour/theme/default/main.css" />
<script type="text/javascript" src="Admin/Module/Manhour/scripts/ManHourReportBiz.js"></script>
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
    var MH_DATA = <%=JsCode %>;
    var jrddlUser = new JskitRichDropDownList("jrddlUser");
    jrddlUser.setIsMultiSelect(true);
    jrddlUser.setColumns(["姓名", "部门", "职务"]);
    var mhrb = new ManHourReportBiz("mhrb");
    function PageOnLoad() {
        jrddlUser.deploy(fixId("txt_UserName"), fixId("hid_UserKey"), "Ws/_User.aspx?mode=rddl");
        mhrb.load(MH_DATA);
        mhrb.deploy("lab_Report");
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <asp:HiddenField runat="server" ID="hid_ExcelData" />
    <fieldset>
        <legend>设定项</legend>
        <table>
            <tr>
                <td>用户：</td>
                <td>
                    <asp:TextBox runat="server" ID="txt_UserName" Width="500px"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_UserKey" />
                </td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td>起止时间：</td>
                <td><asp:TextBox runat="server" ID="txt_FromDt" onclick="return jskitDateSelector.openMode(this,event,'d','yyyy-MM-dd 0:0:0');"></asp:TextBox></td>
                <td><asp:TextBox runat="server" ID="txt_ToDt" onclick="return jskitDateSelector.openMode(this,event,'d','yyyy-MM-dd 23:59:59');"></asp:TextBox></td>
            </tr>
        </table>
    </fieldset>
<div class="action_bar">
    <asp:Button runat="server" ID="btn_Query" Text="查询" OnClick="btn_Query_Click" />
    <asp:Button runat="server" ID="btn_Export" Text="导出到EXCEL" OnClientClick="mhrb.Export();return false;" />
</div>
<fieldset>
    <legend>Report</legend>
    <div id="lab_Report" class="report_box"></div>
</fieldset>
</asp:Content>
